package com.dimples.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 消息
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/27
 */
@ApiModel(value = "com-dimples-system-entity-Notice")
@Data
@TableName(value = "t_notice")
public class SysNotice {
    /**
     * 编号
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "TITLE")
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "CONTENT")
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 发送人
     */
    @TableField(value = "SENDER")
    @ApiModelProperty(value = "发送人")
    private Long sender;

    /**
     * 接收者
     */
    @TableField(value = "ACCEPT")
    @ApiModelProperty(value = "接收者")
    private Long accept;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "类型")
    private String type;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(value = "UPDATE_BY")
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty(value = "接受者")
    private String acceptName;

    @TableField(exist = false)
    @ApiModelProperty(value = "发送者")
    private String senderName;
}